﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;

namespace Kaleta.Xna.Tester
{
    public static class Global
    {
        public static class SpriteSheets
        {
            public static SpriteSheet Shield1;
            public static SpriteSheet ShieldExplosion1;
            public static SpriteSheet HudShieldPart;
            public static SpriteSheet LightWhite, LightGreen, LightRed, LightGreenTrans, LightWhiteReverse;
            public static SpriteSheet Shadow;
            public static SpriteSheet PulseShot;
        }

        public static void Load(ContentManager Content)
        {
            Global.SpriteSheets.LightWhiteReverse = new SpriteSheet()
            {
                Texture = Content.Load<Texture2D>("Textures/PulseShot"),
                FrameCount = 1,
                FrameHeight = 64,
                FrameWidht = 64
            };

            Global.SpriteSheets.LightWhiteReverse = new SpriteSheet()
            {
                Texture = Content.Load<Texture2D>("Textures/LightWhiteReverse"),
                FrameCount = 1,
                FrameHeight = 128,
                FrameWidht = 128
            };
            Global.SpriteSheets.LightGreenTrans = new SpriteSheet()
            {
                Texture = Content.Load<Texture2D>("Textures/LightGreenTrans"),
                FrameCount = 1,
                FrameHeight = 128,
                FrameWidht = 128
            };
            Global.SpriteSheets.LightWhite = new SpriteSheet()
            {
                Texture = Content.Load<Texture2D>("Textures/LightWhite"),
                FrameCount = 1,
                FrameHeight = 128,
                FrameWidht = 128
            };
            Global.SpriteSheets.LightGreen = new SpriteSheet()
            {
                Texture = Content.Load<Texture2D>("Textures/LightGreen"),
                FrameCount = 1,
                FrameHeight = 128,
                FrameWidht = 128
            };
            Global.SpriteSheets.LightRed = new SpriteSheet()
            {
                Texture = Content.Load<Texture2D>("Textures/LightRed"),
                FrameCount = 1,
                FrameHeight = 256,
                FrameWidht = 256
            };
            Global.SpriteSheets.Shadow = new SpriteSheet()
            {
                Texture = Content.Load<Texture2D>("Textures/Shadow"),
                FrameCount = 1,
                FrameHeight = 128,
                FrameWidht = 128
            };

            Global.SpriteSheets.ShieldExplosion1 = new SpriteSheet()
            {
                Texture = Content.Load<Texture2D>("Textures/shield_explosion"),
                FrameCount = 36,
                FrameHeight = 128,
                FrameWidht = 128
            };

            Global.SpriteSheets.Shield1 = new SpriteSheet()
            {
                Texture = Content.Load<Texture2D>("Textures/shield1"),
                FrameCount = 36,
                FrameHeight = 128,
                FrameWidht = 128
            };

            Global.SpriteSheets.HudShieldPart = new SpriteSheet()
            {
                Texture = Content.Load<Texture2D>("Textures/shield_HUD_part"),
                FrameCount = 1,
                FrameHeight = 58,
                FrameWidht = 82
            };

        }


    }

    public class SpriteSheet
    {
        public Texture2D Texture { get; set; }
        public int FrameCount { get; set; }
        public int FrameWidht { get; set; }
        public int FrameHeight { get; set; }
    }
}
